import request from "@/manager/base/RequestManager";
import AfterSaleCreateWarehouseRequest from "@/api/afterSale/warehouse/request/AfterSaleCreateWarehouseRequest";
import IdRequest from "@/api/baisc/IdRequest";
import AfterSaleWarehouseCallBackRequest from "@/api/afterSale/warehouse/request/AfterSaleWarehouseCallBackRequest";

/**
 * FileName: AfterSaleOrderWarehouseControllerImpl.java
 * Author:   徐寿春
 * Date:     2023/4/18 10:47
 * <p>
 * 名称: 售后仓库服务
 */
export function createWarehouseOrder(params: AfterSaleCreateWarehouseRequest) {
    return request.post('after/sale/warehouse/createWarehouseOrder', params)
}


/**
 * 入库调用 ： 手动
 *
 * @author 徐寿春
 * 2023/4/18 10:50
 */
export function optWarehouseOrderWarehousing(params: IdRequest) {
    return request.post('after/sale/warehouse/optWarehouseOrderWarehousing', params)
}


/**
 *  物料打回待质检
 *
 * @author 徐寿春
 * 2023/4/22 15:02
 */
export function warehouseCallbackOrderLine(params: AfterSaleWarehouseCallBackRequest) {
    return request.post('after/sale/warehouse/warehouseCallbackOrderLine', params)
}